<?php

namespace common\models\base;

use Yii;

/**
 * This is the model class for table "{{%nbrb_request_log}}".
 *
 * @property int $id
 * @property int $created_at
 * @property string $request_action
 * @property string $request_seq_no
 * @property string $request_interface_code
 * @property string $request_interface_version
 * @property string $request_item_code
 * @property string $request_company_code
 * @property string $request_order_num
 * @property string $request_attachment_type
 * @property string $request_number
 * @property string $request_file_url
 * @property string $request_json
 * @property string $nbrb_req_data
 * @property string $request_data
 * @property string $resp_data
 * @property string $resp_success
 * @property string $resp_code
 * @property string $resp_at_number
 * @property string $resp_info
 * @property string $resp_info_code
 * @property string $resp_info_order_number
 * @property string $resp_info_access_number
 * @property string $resp_info_underwrite_number
 * @property string $resp_info_add_record_number
 * @property string $resp_info_final_audit_number
 * @property string $resp_info_loan_apply_number
 * @property string $resp_info_pledge_info_number
 */
class NbrbRequestLog extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%nbrb_request_log}}';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['created_at', 'request_action', 'request_seq_no', 'request_item_code', 'request_company_code', 'request_data'], 'required'],
            [['created_at'], 'integer'],
            [['request_file_url', 'request_json', 'nbrb_req_data', 'request_data', 'resp_data', 'resp_info'], 'string'],
            [['request_action'], 'string', 'max' => 255],
            [['request_seq_no', 'request_interface_code', 'request_order_num', 'request_attachment_type', 'request_number', 'resp_at_number', 'resp_info_order_number', 'resp_info_access_number', 'resp_info_underwrite_number', 'resp_info_add_record_number', 'resp_info_final_audit_number', 'resp_info_loan_apply_number', 'resp_info_pledge_info_number'], 'string', 'max' => 50],
            [['request_interface_version', 'request_item_code', 'request_company_code', 'resp_info_code'], 'string', 'max' => 20],
            [['resp_success', 'resp_code'], 'string', 'max' => 1],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => Yii::t('app', 'ID'),
            'created_at' => Yii::t('app', 'Created At'),
            'request_action' => Yii::t('app', 'Request Action'),
            'request_seq_no' => Yii::t('app', 'Request Seq No'),
            'request_interface_code' => Yii::t('app', 'Request Interface Code'),
            'request_interface_version' => Yii::t('app', 'Request Interface Version'),
            'request_item_code' => Yii::t('app', 'Request Item Code'),
            'request_company_code' => Yii::t('app', 'Request Company Code'),
            'request_order_num' => Yii::t('app', 'Request Order Num'),
            'request_attachment_type' => Yii::t('app', 'Request Attachment Type'),
            'request_number' => Yii::t('app', 'Request Number'),
            'request_file_url' => Yii::t('app', 'Request File Url'),
            'request_json' => Yii::t('app', 'Request Json'),
            'nbrb_req_data' => Yii::t('app', 'Nbrb Req Data'),
            'request_data' => Yii::t('app', 'Request Data'),
            'resp_data' => Yii::t('app', 'Resp Data'),
            'resp_success' => Yii::t('app', 'Resp Success'),
            'resp_code' => Yii::t('app', 'Resp Code'),
            'resp_at_number' => Yii::t('app', 'Resp At Number'),
            'resp_info' => Yii::t('app', 'Resp Info'),
            'resp_info_code' => Yii::t('app', 'Resp Info Code'),
            'resp_info_order_number' => Yii::t('app', 'Resp Info Order Number'),
            'resp_info_access_number' => Yii::t('app', 'Resp Info Access Number'),
            'resp_info_underwrite_number' => Yii::t('app', 'Resp Info Underwrite Number'),
            'resp_info_add_record_number' => Yii::t('app', 'Resp Info Add Record Number'),
            'resp_info_final_audit_number' => Yii::t('app', 'Resp Info Final Audit Number'),
            'resp_info_loan_apply_number' => Yii::t('app', 'Resp Info Loan Apply Number'),
            'resp_info_pledge_info_number' => Yii::t('app', 'Resp Info Pledge Info Number'),
        ];
    }
}
